package org.example.jingTaiProxy2;

public class UserServiceProxy implements UserService {
    UserServiceImpl usi;

    public UserServiceProxy(UserServiceImpl usi) {
        this.usi = usi;
    }

    @Override
    public void add() {
        usi.add();// 原始业务
        System.out.println("额外的功能....");// 增强业务
        System.out.println("额外的功能....");// 增强业务
    }

    @Override
    public void delete() {
        usi.delete();
    }

    @Override
    public void update() {
        usi.update();
    }

    @Override
    public void find() {
        usi.find();
    }
}
